#ifndef INCLUDED_PRESENCETASK_H
#define INCLUDED_PRESENCETASK_H

#include "basetask.h"
#include "xmpptask.h"

namespace tinkle {

class XmppPresenceTask : public XmppTask {
public:
    XmppPresenceTask(BaseTask *parent);
    ~XmppPresenceTask();

    enum SHOW_STATE {
        ONLINE,
        OFFLINE,
        AWAY,
        CHAT,
        DND,    // do not disturb
        XA      // long time away
    };
    // set the status(away, chat, dnd, xa) so that your friends can see your
    // current status
    void SetState(SHOW_STATE state);

    void SetStatus(const std::string &status);

    bool NextStanza(XmlNode *stanza);
};

}

#endif